/*
 *      Created on: Feb 24, 2011
 *      Author: topcoder
 */

#ifndef UNIT_H_
#define UNIT_H_

#include <string>
using namespace std;

class Unit
{
    public:
        Unit(unsigned int ratio, string name);
        ~Unit();
        unsigned long convertToBase(unsigned long quantity)const;
        unsigned long getRemainder(unsigned long quantity)const;
        string outputFormat(unsigned long quantity)const;
        bool operator <= (const Unit& unit)const;
    private:        
        unsigned int ratio_m;
        string       name_m;
};

#endif
